package com.qingcloud.adminbackend.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qingcloud.adminbackend.entity.eid.EidBatchPageDTO;
import com.qingcloud.adminbackend.entity.eid.EidBatchPageParam;
import com.qingcloud.adminbackend.entity.eid.EidGenParam;
import com.qingcloud.adminbackend.entity.eid.SysEquipmentidGen;

/**
 * <p>
 * 设备编号生成 服务类
 * </p>
 *
 * @author wangjinnan
 * @since 2019-04-17
 */
public interface ISysEquipmentidGenService extends IService<SysEquipmentidGen> {

    /**
     * 生成设备编号
     */
    String create(EidGenParam eidGenParam, String userId);

    /**
     * 分页查询生成编号批次
     *
     * @param pageParam
     * @return
     */
    IPage<EidBatchPageDTO> searchPage(EidBatchPageParam pageParam);

    /**
     * 作废编号批次
     *
     * @param id     批次ID
     * @param userId 操作用户ID
     */
    void cancel(String id, String userId);
}
